/*
 * @Author: 陈迪秀 1170776994@qq.com
 * @Date: 2024-02-27 11:19:03
 * @LastEditors: 陈迪秀 1170776994@qq.com
 * @LastEditTime: 2024-02-28 09:18:32
 * @FilePath: \stell-mall\src\request\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from 'axios';
// const baseUrl = 'http://192.168.20.155:3033/'
const baseUrl = 'https://www.gggjpg.com:3033/'
const TIME_OUT = 30 * 1000;

axios.defaults.baseURL = baseUrl; //默认基础路径
// axios.defaults.baseUrl = baseUrl; //容错处理
axios.defaults.withCredentials = false; //跨域请求时是否需要使用凭证
axios.defaults.timeout = TIME_OUT; //超时时间
axios.defaults.headers = {
    'Access-Control-Allow-Origin': '*'
};

export default axios;
